<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <a href="javascript:;" class="btn btn-success btn-adddamage {:$auth->check('box/damage/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%">
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>

<script id="customformtpl" type="text/html">
    <!--form表单必须添加form-commsearch这个类-->
    <form action="" class="form-horizontal form-commonsearch nice-validator n-default n-bootstrap">
        <fieldset>
            <div class="row">
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label class="control-label col-xs-4">{:__('Box_no')}</label>
                    <div class="col-xs-8">
                        <!--隐式的operate操作符，必须携带一个class为operate隐藏的文本框,且它的data-name="字段",值为操作符-->
                        <input class="operate" type="hidden" data-name="box_no" value="="/>
                        <input class="form-control" type="text" name="box_no" placeholder="" value=""/>
                    </div>
                </div>

                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label class="control-label col-xs-4">{:__('User_id')}</label>
                    <div class="col-xs-8">
                        <!--隐式的operate操作符，必须携带一个class为operate隐藏的文本框,且它的data-name="字段",值为操作符-->
                        <input class="operate" type="hidden" data-name="user_id" value="="/>
                        <input class="form-control" type="text" name="user_id" placeholder="" value=""/>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-6">
                    <label class="control-label col-xs-2">{:__('城市')}{:__('小区单元')}</label>
                    <div class="col-xs-10">
                        <input type="hidden" class="operate" data-name="province" value="="/>
                        <input type="hidden" class="operate" data-name="city" value="="/>
                        <input type="hidden" class="operate" data-name="area" value="="/>
                        <input type="hidden" class="operate" data-name="quarters_id" value="="/>
                        <input type="hidden" class="operate" data-name="unit_id" value="="/>
                        <input type="hidden" class="operate" data-name="room_id" value="="/>
                        <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area,quarters,unit_id,room_id">
                            <select class="province form-control" name="province" data-url="ajax/area"></select>
                            <select class="city form-control" name="city" data-url="ajax/area"></select>
                            <select class="area form-control" name="area" data-url="ajax/area"></select>
                            <select class="quarters form-control" name="quarters_id" data-url="box/address/house/cxselect?type=quarters" ></select>
                            <select class="unit_id form-control" name="unit_id" data-url="box/address/house/cxselect?type=unit" data-query-name="quarters_id"></select>
                            <select class="room_id form-control" name="room_id" data-url="box/address/house/cxselect?type=room" data-query-name="unit_id"></select>
                        </div>
                    </div>
                </div>

                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label class="control-label col-xs-4">{:__('Createtime')}</label>
                    <div class="col-xs-8">
                        <input type="hidden" class="operate" data-name="createtime" value="RANGE"/>
                        <input type="text" class="form-control datetimerange" name="createtime" value=""/>
                    </div>
                </div>
                <div class="form-group col-xs-12 col-sm-6 col-md-4 col-lg-3">
                    <label class="control-label col-xs-4"></label>
                    <div class="col-xs-8">
                        <div class="row">
                            <div class="col-xs-6">
                                <input type="submit" class="btn btn-success btn-block" value="提交"/>
                            </div>
                            <div class="col-xs-6">
                                <input type="reset" class="btn btn-primary btn-block" value="重置"/>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</script>